package com.share.three.a_environment.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.share.three.a_environment.dao.AccountDaoImpl;

@Service
public class AccountServiceImpl implements AccountService {
	
	@Autowired
	AccountDaoImpl accountDaoImpl;

	@Override
	public void transfer(String outer, String inner, int money) {
		accountDaoImpl.out(outer, money);
		accountDaoImpl.in(inner, money);
	}

}
